package com.example.xd.dialtest.net;

import com.example.xd.dialtest.net.test.LoginBean;

import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @auther XuDan on 2019/12/18.
 */
public interface ApiService {
    ApiService instance = RetrofitClient.getInstance().getRetrofit().create(ApiService.class);

    @POST("/user/login")
    Observable<LoginBean> login(@Query("username") String name,
                                @Query("password") String pwd);
}
